import Vue from "vue";
import iview from "iview";

Vue.use(iview);

const requirePlugin = require.context(
  "./plugins",
  false,
  /[a-z0-9]+Plugin\.(js)$/i
);
requirePlugin.keys().forEach(fileName => {
  const plugin = requirePlugin(fileName);
  Vue.use(plugin.default || plugin);
});
